/*************************************************************************
	> File Name: P1618.cpp
	> Author: yufangze
	> Mail: 2224590123@qq.com
	> Created Time: 2025-02-10 17:57:06
 ************************************************************************/
#include <iostream>
#include <cmath>
using namespace std;

bool is_val(int *num, int a) {
    int digit = floor(log10(a)) + 1;
    if (digit != 3) return false;
    while (a) {
        if (num[a % 10]) return false;
        num[a % 10] = 1;
        a /= 10;
    }
    return true;
}

bool check(int a, int b, int c) {
    int num[10] = {1, 0}, flag = 1;
    flag = flag && is_val(num, a);
    flag = flag && is_val(num, b);
    flag = flag && is_val(num, c);
    return flag;
}

int main() {
    int a, b, c, flag = 0;
    cin >> a >> b >> c;
    for (int i = 1; i <= 1000 / c; i++) {
        int val1 = i * a;
        int val2 = i * b;
        int val3 = i * c;
        bool res = check(val1, val2, val3);
        if (res) {
            flag = 1;
            cout << val1 << " " << val2 << " " << val3 << endl;
        }
    }
    if (flag == 0) {
        cout << "No!!!" << endl;
    }
    return 0;
}
